package com.linktel.productionLine.service;

import com.linktel.productionLine.dao.WorksheetYieldInfoDao;
import com.linktel.productionLine.entity.dto.worksheetYieldInfo.WsSerialDTO;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author HuangJiaHui
 * @Date 2023/9/27 10:45
 */
@Service
@AllArgsConstructor
public class WorksheetYieldInfoService {
    private WorksheetYieldInfoDao worksheetYieldInfoDao;


    public List<String> listProductCode() {
        return worksheetYieldInfoDao.listProductCode();
    }

    public List<WsSerialDTO> listWsSerialNumber(String productCode) {
        return worksheetYieldInfoDao.listWsSerialNumber(productCode);
    }

    public String getProductCode(String wsSerialNumber) {
        return worksheetYieldInfoDao.getProductCode(wsSerialNumber);
    }
}
